home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / OpenGL / glviewport.z / glviewport
Encoding:
Text File  |  2002-10-03  |  4.2 KB  |  139 lines

  1.  
  2.  
  3.  
  4. ggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))                 OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                 ggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggllllVVVViiiieeeewwwwppppoooorrrrtttt - set the viewport
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void ggggllllVVVViiiieeeewwwwppppoooorrrrtttt( GLint _x,
  14.                       GLint _y,
  15.                       GLsizei _w_i_d_t_h,
  16.                       GLsizei _h_e_i_g_h_t )
  17.  
  18.  
  19. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  20.      _x, _y Specify the lower left corner of the viewport rectangle, in pixels.
  21.           The initial value is (0,0).
  22.  
  23.      _w_i_d_t_h, _h_e_i_g_h_t
  24.           Specify the width and height of the viewport.  When a GL context is
  25.           first attached to a window, _w_i_d_t_h and _h_e_i_g_h_t are set to the
  26.           dimensions of that window.
  27.  
  28. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.      ggggllllVVVViiiieeeewwwwppppoooorrrrtttt specifies the affine transformation of x and y from normalized
  30.      device coordinates to window coordinates.  Let (x  , y  ) be normalized
  31.                                                       nd   nd
  32.      device coordinates.  Then the window coordinates (x , y ) are computed as
  33.                                                         w   w
  34.      follows:
  35.  
  36.                                            (    width_____)
  37.                              x  = (x   + 1)        + x
  38.                               w     nd     (  2  )
  39.  
  40.                                           (    height______)
  41.                             y  = (y   + 1)         + y
  42.                              w     nd     (  2   )
  43.  
  44.      Viewport width and height are silently clamped to a range that depends on
  45.      the implementation.  To query this range, call ggggllllGGGGeeeetttt with argument
  46.      GGGGLLLL____MMMMAAAAXXXX____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT____DDDDIIIIMMMMSSSS.
  47.  
  48. EEEERRRRRRRROOOORRRRSSSS
  49.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if either _w_i_d_t_h or _h_e_i_g_h_t is negative.
  50.  
  51.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllVVVViiiieeeewwwwppppoooorrrrtttt is executed between the
  52.      execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.                                                                         PPPPaaaaggggeeee 1111
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. ggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))                 OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                 ggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))
  77.  
  78.  
  79.  
  80. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS
  81.      ggggllllGGGGeeeetttt with argument GGGGLLLL____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT
  82.      ggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAAXXXX____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT____DDDDIIIIMMMMSSSS
  83.  
  84.  
  85. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  86.      ggggllllDDDDeeeepppptttthhhhRRRRaaaannnnggggeeee
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.                                                                         PPPPaaaaggggeeee 2222
  136.  
  137.  
  138.  
  139.